package com.mhl.campuscabinet;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

import java.util.Timer;
import java.util.TimerTask;

//封面大图
public class CoverActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_cover);
        Intent it = new Intent(this, LoginActivity.class); //下一步转向Mainctivity
        Timer timer = new Timer();
        TimerTask task = new TimerTask() {
            @Override
            public void run() {
                startActivity(it);finish(); //执行意图
            }
        };
        timer.schedule(task, 1000 * 1); //3秒后跳转，这里根据自己需要设定时间

    }
}